Formidable.Classes.Radio = Formidable.Classes.RdtBaseClass.extend({
	isParentObj: function() {
		return this.config.bParentObj == true;
	},
	getValue: function() {
		if(this.isParentObj()) {
			for(var k in this.config.radiobuttons) {
				if(this.oForm.o(this.config.radiobuttons[k]).checked) {
					return this.oForm.o(this.config.radiobuttons[k]).value;
				}
			}
		}
		
		return "";
	},
	attachEvent: function(sEventHandler, fFunc) {
		for(var k in this.config.radiobuttons) {
			oObj = this.oForm.o(this.config.radiobuttons[k]);
			Event.observe(
				oObj,
				sEventHandler,
				fFunc.bindAsEventListener(oObj)
			);
		}
	}
});